import axios from "../../utils/axios";

// 文件列表
export function getList(query) {
    return axios({
        url: "/admin/system/file/index",
        method: "get",
        params: query
    });
}

// 文件添加
export function addFile(query) {
    return axios({
        url: "/admin/system/file/save",
        method: "post",
        data: query
    });
}

// 文件修改
export function editFile(query) {
    return axios({
        url: "/admin/system/file/edit",
        method: "post",
        data: query
    });
}

// 文件删除
export function deleteFile(query) {
    return axios({
        url: "/admin/system/file/delete",
        method: "post",
        data: query
    });
}

// 类型
export function getType(query) {
    return axios({
        url: "/admin/system/file/getCaseType",
        method: "post",
        params: query
    });
}
